//
//  UIColor+Extension.swift
//  weibo27
//
//  Created by mac on 16/4/23.
//  Copyright © 2016年 it.cast. All rights reserved.
//

import UIKit

//创建随机颜色
extension UIColor{
    
    class func randomColor()->UIColor{
        
        let r = CGFloat(random() % 256) / 255.0
        let g = CGFloat(random() % 256) / 255.0
        let b = CGFloat(random() % 256) / 255.0
        
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
    }
}
